<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="utf-8"%>
<%
	String id = (String) request.getAttribute("id");

%>
<html>
<head>


<script type="text/javascript">
var id=<%=id%>;
var listPageUrl="user/index.do";
var userInfoUrl="rest/userInfo.do";

$(document).ready(function () {	
	
		$.get(userInfoUrl + "?id=" + id, function(result) {
			if (result.retCode == "0000") {
				data = result.data;
				$('#user-fm').form('load', data);
			} else {
				$('#dg').datagrid('reload');
				$.messager.alert('操作提示', "加装数据失败", '加装数据失败');
			}
		});
		
// 		$('#orgId').combotree({onSelect:function(node){
// 			$("#orgId").val(node.id);//设置oid
// 		}});

	})
	//end ready
	
	function back(url) {
		$.get(url, {}, function(data) {
			$("#center").empty();
			$("#center").html(data);
			$.parser.parse($("#center"));
		});
	}
</script>
</head>
<body>
		
<div class="linkbar"><a>系统</a>/<a>用户管理</a>/<a> 编辑用户</a></div>
<!-- 		<div class="breadcrumb">系统 &gt;&gt; 用户管理 &gt;&gt; 编辑用户</div> -->
		<div id="user-add" 	buttons="#user-add-buttons">
			<form id="user-fm" method="post" novalidate>
				<INPUT TYPE=hidden NAME=id VALUE="${id}">
			<div class="fitem">
				<label>管理员手机号:</label> <input name="adminPhone"
					class="easyui-validatebox" missingMessage="该输入项不能为空！"
					required="true" readonly="readonly" />
			</div>

			<div class="fitem">
				<label>管理员姓名:</label> <input name="adminName"
					class="easyui-validatebox" missingMessage="该输入项不能为空！"
					required="true" readonly="readonly" />
			</div>

			<div class="fitem">
				<label>管理员身份证号:</label> <input name="identificationCard"
					class="easyui-validatebox" missingMessage="该输入项不能为空！"
					required="true" readonly="readonly" />
			</div>
						
			</form>
		</div>
		<div id="dlg-buttons">
			<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="back(listPageUrl)">返回</a>
		</div>
		

</body>
</html>